package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.ProductCommentQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-14 23:12
 */
@FeignClient(value = "productcomment-query",fallbackFactory = ProductCommentQueryClientFallback.class)
public interface ProductCommentQueryClient{
    @GetMapping("productcomment/page/{pageNum}/{pageSize}/{productId}")
    Result page(@PathVariable("pageNum") Integer pageNum,
                               @PathVariable("pageSize") Integer pageSize,
                               @PathVariable("productId") String productId);

    @GetMapping("productcomment/retrieveCommentCount/{productId}")
    Result retrieveCommentsCount(@PathVariable("productId") String productId);

}
